import { ApiProperty } from "@nestjs/swagger"
import { IsNotEmpty } from "class-validator"
import { UserResumeDto } from "./resume.dto"
import { CreateResumeEducationDto } from "./resumeEducation.dto"
import { CreateResumeExperienceDto } from "./resumeExperience.dto"
import { CreateResumeProjectDto } from "./resumeProject.dto"
import { CreateResumeSkillDto } from "./resumeSkill.dto"
import { CreateResumeSkilltxtDto } from "./resumeSkilltxt.dto"

/*
 * @Description: 
 * @Author: fhw
 * @Date: 2022-12-01 15:23:27
 */
export class CreateUserResumeDto extends UserResumeDto {
    @IsNotEmpty({ message: '头像地址不能为空' })
    @ApiProperty({
        type: String,
        name: 'userImage',
        description: '头像地址',
    })
    public readonly userImage: string

    @ApiProperty({
        example: CreateResumeEducationDto,
        type: [CreateResumeEducationDto],
        description: '教育经历'
    })
    resumeEducation: CreateResumeEducationDto[]

    @ApiProperty({
        example: CreateResumeExperienceDto,
        type: [CreateResumeExperienceDto],
        description: '工作经历'
    })
    resumeExperience: CreateResumeExperienceDto[]

    @ApiProperty({
        example: CreateResumeProjectDto,
        type: [CreateResumeProjectDto],
        description: '项目经验'
    })
    resumeProject: CreateResumeProjectDto[]

    @ApiProperty({
        example: CreateResumeSkillDto,
        type: [CreateResumeSkillDto],
        description: '技术'
    })
    resumeSkill: CreateResumeSkillDto[]

    @ApiProperty({
        example: CreateResumeSkilltxtDto,
        type: [CreateResumeSkilltxtDto],
        description: '技术描述'
    })
    resumeSkilltxt: CreateResumeSkilltxtDto[]
}